extends Node2D

@onready var camera := $Camera2D 

const level_select := preload("res://scenes/level_select/level_select.tscn")

# Called every frame. 'delta' is the elapsed time since the previous frame.
func move_camera() -> void:
	var tween = get_tree().create_tween()
	tween.set_trans(Tween.TRANS_QUAD)
	tween.tween_property(camera, "position", Vector2(192,288), 1.5)
	


func _on_play_button_pressed() -> void:
	var level_select_ = level_select.instantiate()
	level_select_.position = Vector2(0,192)
	add_child(level_select_)
	move_camera()
